//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CConstantVertex9.cpp>
///	@path	~/src/graphics/dx9/
///	@date	2009/01/10
///	@desc	.

#include "config/config.h"

#include "graphics/dx9/CConstantVertex9.h"

namespace xeres {

	IMPL_IOBJECT_CLASS( CConstantVertex9 );

	// CConstantVertex9
	CConstantVertex9::CConstantVertex9( IDirect3DVertexBuffer9 * buffer , size_t count , size_t stride )
		: CBaseVertex9( buffer , count , stride )
	{
	}
	// ~CConstantVertex9
	CConstantVertex9::~CConstantVertex9( void )
	{
	}
	// Map
	bool CConstantVertex9::Map( bool discard , ResourceMap& data )
	{
		TRACE_ERROR( _S("CConstantVertex9::Map: Constant vertex is not lockable for write.") );
		return false;
	}
	// ReadBack
	bool CConstantVertex9::ReadBack( ResourceMap& data , bool readonly )
	{
		TRACE_ERROR( _S("CConstantVertex9::ReadBack: Constant vertex is not lockable.") );
		return false;
	}
	// Unmap
	bool CConstantVertex9::Unmap( void )
	{
		TRACE_ERROR( _S("CConstantVertex9::Unmap: Constant vertex cannot be locked & unlocked.") );
		return false;
	}

} // namespace xeres
